package com.wn.test;

import com.wn.entity.Person;
import com.wn.factoryUtils.LastBeanFactory;
import com.wn.factoryUtils.ThirdFactory;

public class day1test4 {
    public static void main(String[] args) {
        LastBeanFactory lastBeanFactory = new LastBeanFactory();
        Person p1 = lastBeanFactory.getBean("chinese");
        Person p2 = lastBeanFactory.getBean("american");

        p1.eat();
        p2.eat();
    }


}
